<?php


namespace App\Http\Controllers;
use App\Models\Category;
use App\Models\Filter;


class WxappController extends Controller
{

    public function weixinxiaochengxu()
    {
        $catelist = Category::getCateListBy('weixinxiaochengxu');
        //Filter::resourceLink('https://www.szweb.cn/weixinxiaochengxu');
        Filter::cutStr(
            'https://www.szweb.cn/weixinxiaochengxu',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'wxapp/weixinxiaochengxu'
        );
        $cate = Category::getCateByTargetName("weixinxiaochengxu");
        return view("wxapp.weixinxiaochengxu",compact("cate", "catelist"));
    }


    public function weishangcheng()
    {
        $catelist = Category::getCateListBy('weixinxiaochengxu');
        //Filter::resourceLink('https://www.szweb.cn/weishangcheng');
        Filter::cutStr(
            'https://www.szweb.cn/weishangcheng',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'wxapp/weishangcheng'
        );
        $cate = Category::getCateByTargetName("weishangcheng");
        return view("wxapp.weishangcheng",compact("cate", "catelist"));
    }


    public function weiguanwang()
    {
        $catelist = Category::getCateListBy('weixinxiaochengxu');
        //Filter::resourceLink('https://www.szweb.cn/weiguanwang');
        Filter::cutStr(
            'https://www.szweb.cn/weiguanwang',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'wxapp/weiguanwang'
        );
        $cate = Category::getCateByTargetName("weiguanwang");
        return view("wxapp.weiguanwang",compact("cate", "catelist"));
    }

    public function weihuodong()
    {
        $catelist = Category::getCateListBy('weixinxiaochengxu');
        //Filter::resourceLink('https://www.szweb.cn/weihuodong');
        Filter::cutStr(
            'https://www.szweb.cn/weihuodong',
            '<div class="full-site-article h5site-marb">',
            '<div class="full-related-news">',
            'wxapp/weihuodong'
        );
        $cate = Category::getCateByTargetName("weihuodong");
        return view("wxapp.weihuodong",compact("cate", "catelist"));
    }
}